<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>住户审核</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="renderer" content="webkit">
    <link href="${pageContext.request.contextPath}/static/css/common.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/css/bootstrap.min.css"
          rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/font-awesome-4.3.0/css/font-awesome.min.css"
          rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/select2-4.0.0/dist/css/select2.min.css"
          rel="stylesheet"/>

    <script src="${pageContext.request.contextPath}/static/js/jquery-1.11.3.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/select2-4.0.0/dist/js/select2.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/plugins/My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
    	 .form-control{
    	 display: inline-block;
    	}
         body .btn-calss{
         	height: 25px;
         	width: 50px;
         	margin-left: 10px;
         	border-radius: 2px;
         	font-weight: 400;
         	cursor: pointer;
         	border: 1px solid #dedede;
        	background: none;
        }       
    	
	</style>

</head>
<body>
<div class="col-sm-12">
    <form class="form-horizontal m-t" id="form" method="post"
          action="${pageContext.request.contextPath}/admin/tusers_audit.action">
       	 <input type="hidden" name="communityId" value="${communityId}">
       	 <input type="hidden" name="sid" value="${sid}">
       	 <input type="hidden" name="agtCode" value="${agtCode}">
       	 <input type="hidden" name="flag" value="1">
       	 <input type="hidden" name="status" value="1"> 	 
         <div class="form-group" style="padding-left: 30px;padding-right: 30px;margin-bottom: 0px;">
		 <table class="table table-bordered">
		  <caption>基本信息</caption>
		  <tr><label>基本信息</label></tr>
		  <tbody>
		    <tr>
		      <td width="25%" style="text-align: center;color: #aaaaaa">姓名</td>
		      <td>${auname}</td>
		    </tr>
		    <tr>
		      <td width="25%" style="text-align: center;color: #aaaaaa">楼栋单元房号</td>
		      <td>${room}</td>
		    </tr>
		    <tr>
		      <td width="25%" style="text-align: center;color: #aaaaaa">手机号</td>
		      <td>${tel}</td>
		    </tr>
		    <tr>
		      <td width="25%" style="text-align: center;color: #aaaaaa">申请时间</td>
		      <td>${ctime}</td>
		    </tr>
		    <tr>
		      <td width="25%" style="text-align:center;vertical-align:middle; color: #aaaaaa">备注</td>
		      <td>${comm}</td>
		    </tr>
		    
		  </tbody>
		</table>
	    </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"><i class="require">*</i>房租状态:</label>
                    <input type="radio" checked name="roomStatus" id="roomStatus" size="30" value="1"/><label>自住</label>
                    <input type="radio" name="roomStatus" id="roomStatus" size="30" value="2" style="margin-left: 10px;"/><label>出租</label>
                    <input type="radio" name="roomStatus" id="roomStatus" size="30" value="3" style="margin-left: 10px;"/><label>空置</label>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"><i class="require">*</i>钥匙配发:</label>
                    <input type="radio" checked name="keySelect" size="30" value="1"/><label>默认</label>
                    <input type='button' class="btn-calss" value="选择" onclick="parentAudit()"/>               
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"><i class="require">*</i>有效时间:</label>
            <input class="form-control" name="validity" id='validity' style="width: 185px;"
           			onclick='WdatePicker()'/>
            <a style="margin-left: 6px;font-family: 微软雅黑;font-size: 12px;color:#999999;">(设置钥匙有效期)</a>
        </div>
    </form>
</div>
<script type="text/javascript">
$(document).ready(
		function(){
			var date = new Date();
			var seperator1 = "-";
			var year = date.getFullYear()+1;
			var month = date.getMonth() + 1;
			var strDate = date.getDate();
			if (month >= 1 && month <= 9) {
			    month = "0" + month;
			}
			if (strDate >= 0 && strDate <= 9) {
			    strDate = "0" + strDate;
			}
			var currentdate = year + seperator1 + month + seperator1 + strDate;
			$("#validity").val(currentdate);


		});
		
function parentAudit(){
	var sid = ${sid};
	var roomStatus = $("input:radio[name='roomStatus']:checked").val();
	window.parent.audit(sid,roomStatus);
};
 
</script>
</body>
</html>
